package com.mydemo.springlearning.functions.ioc;

import com.mydemo.springlearning.functions.ioc.api.BeanFactory;
import com.mydemo.springlearning.functions.ioc.content.JsonApplicationContext;
import com.mydemo.springlearning.functions.ioc.po.Apple;

public class TestMainIoc {

    public static void main(String[] args) {
        BeanFactory beanFactory = new JsonApplicationContext("apple.json");
        Apple apple = (Apple) beanFactory.getBean("apple");
        apple.color();

    }
}
